#!/bin/sh
#
# Copyright 2008 VMware, Inc.  All rights reserved. -- VMware Confidential
#
# This is a simple shim to be installed into BINDIR to call the product's
# uninstaller.
#

set -e

. /etc/vmware-installer/bootstrap

installer="$VMWARE_INSTALLER"/vmware-installer

if echo "$@" | grep -q "\(-h\|--help\)"; then
   "$installer" "$@"
else
   "$installer" --uninstall-product @@PRODUCT@@ "$@"
fi
